import { createSSRApp } from 'vue'
import App from './App.vue'
import uviewPlus from 'uview-plus'
import i18n from './lang/index'
import pinia from './store'
// import 'styles/index';
// import 'uview-plus/index.scss';
// import 'styles/variables.scss';
// #ifdef H5
import VConsole from 'vconsole'
if (location.href.indexOf('debug') > -1 || import.meta.env.VITE_ENV === 'development') {
	new VConsole()
}
// #endif
export function createApp() {
  const app = createSSRApp(App)
  app.use(i18n)
  app.use(uviewPlus)
  app.use(pinia)
  app.config.globalProperties.$t = i18n.global.t
  return {
    app
  }
}
